﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Master.Master"
    Inherits="System.Web.Mvc.ViewPage<ArchiveViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <ul class="setpBySetp">
        <% 
            if (Model.Archive.NewsId != 0)
            {
        %>
        <li>
            <%= Html.ActionLink("文字信息","Edit",new { newsId = Model.Archive.NewsId })%></li>
        <li>
            <%= Html.ActionLink("图片信息", "Album", new { newsId = Model.Archive.NewsId })%></li>
        <%  
            }
            else
            {
        %>
        <li class="current">文字信息</li>
        <%
            }
        %>
    </ul>
    <% using (Html.BeginForm())
       {%>
    <table class="table">
        <tr>
            <td>
                标 题<%=Html.Hidden("newsId", Model.Archive.NewsId)%>
            </td>
            <td>
                <%=Html.TextBox("title", Model.Archive.Title, new { @class = "width300" })%>
            </td>
        </tr>
        <tr>
            <td>
                作 者
            </td>
            <td>
                <%=Html.TextBox("author", Model.Archive.Author)%>
            </td>
        </tr>
        <tr>
            <td>
                类 别
            </td>
            <td>
                <ul class="classifyId dropdownlisttree">
                    <%= ClassifyExtend.ParentClassify("classifyId", Model.Archive.ClassifyId, Model.ClassifyList)%>
                </ul>
            </td>
        </tr>
        <tr>
            <td>
                时 间
            </td>
            <td>
                <%=Html.TextBox("AddDateTime", Model.Archive.AddDateTime)%>&nbsp;&nbsp;<strong>有效性</strong>
                <%=Html.CheckBox("Isvalid", Model.Archive.Isvalid)%>
                <strong>标签(Tag):</strong>
                <%= Html.TextBox("eTag", Model.Archive.ETag)%>
            </td>
        </tr>
        <tr>
            <td>
                内 容
            </td>
            <td>
                <%=Html.TextArea("contents", Model.Archive.Contents)%>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <input type="submit" id="submit" name="submit" value="提 交" />
            </td>
        </tr>
    </table>
    <%}
    %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cssLink" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="jsLink" runat="server">
    <script src="<%=Url.Content("~/Contents/ckeditor/ckeditor.js")%>" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="jsContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $(".classifyId").dropdownlist();
            CKEDITOR.replace("contents", { height: "300px" });
            $(".setpBySetp li a").each(function (i, n) {
                if (n.href.toUpperCase() == document.URL.toUpperCase())
                    n.parentNode.className = "current";
            });
        });
    </script>
</asp:Content>
